package com.yipingtai.config;

import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Fegin 配置日志的配置类
 */
@Configuration
@EnableFeignClients(basePackages = {"com.yipingtai.api"}) //开启feign 功能支持
//@EnableFeignClients(basePackageClasses = {UserClient.class})  //上下两种方式都可以,上面那种更省心
public class FeignConfig {

    @Bean
    public Logger.Level loggerLevel(){
        return Logger.Level.BASIC;
    }
}
